﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ItemSetting : MonoBehaviour
{
    //外边框颜色
    public Sprite Box {
        get {
            return this.transform.GetChild(1).GetComponent<Image>().sprite;
        }
        set {
            this.transform.GetChild(1).GetComponent<Image>().sprite = value;
        } }
    public int Count
    {
        get {
            return int.Parse(this.transform.GetChild(2).GetComponent<Text>().text);
        }
        set
        {
            this.transform.GetChild(2).GetComponent<Text>().text = value.ToString();
        }
    }
}
